package com.zebra.demo.person.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zebra.base.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * TODO 必須要增加無參的構造方法 java.sql.SQLDataException: Cannot determine value type from string
 * </p>
 *
 * @author 销魂钉
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("zebra_demo_person")
@NoArgsConstructor
@ApiModel(value="测试人员表", description="测试人员表")
public class DemoPerson extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Builder
    public DemoPerson(String id, String createBy, Date createDate, String updateBy, Date updateDate, String remarks, Integer delFlag, Integer sex, String name, String resume, Integer education) {
        super(id, createBy, createDate, updateBy, updateDate, remarks, delFlag);
        this.sex = sex;
        this.name = name;
        this.resume = resume;
        this.education = education;
    }

    @TableField("sex")
    private Integer sex;

    @TableField("name")
    private String name;

    @TableField("resume")
    private String resume;

    @TableField("education")
    private Integer education;


}
